# -*- coding: utf-8 -*-

from django.contrib import admin
from gallery.models import Album, Picture

class PictureAdmin(admin.StackedInline):
    model = Picture
    extra = 7

class AlbumAdmin(admin.ModelAdmin):
    inlines = [PictureAdmin, ]
    list_display = ('name', 'show_cover')
    list_display_links = list_display
admin.site.register(Album, AlbumAdmin)
